<include file="Public:header" />
<include file="Public:leftside" />
<style>
	.file-item {
		float: left;
		position: relative;
		margin: 0 20px 20px 0;
		padding: 4px;
		background: #000;
	}
	.ee_span{
		    background: #eee;
		    height: 35px;
		    display: block;
		    line-height: 35px;
		    padding-left: 9px;
	}
</style>
<div class="main-content">
	<div class="breadcrumbs breadcrumbs-fixed" id="breadcrumbs">
		<ul class="breadcrumb">
			<li> <i class="icon-home home-icon"></i>
				<a href="/">首页</a>
			</li>
			<li>
				<a href="/Store/store_list/">分类管理</a>
			</li>
			<php>if($_GET['id']){</php>
				<li class="active">修改分类</li>
			<php>}else{</php>
				<li class="active">添加分类</li>	
			<php>}</php>	
		</ul>
	</div>
	<div class="page-content" style="padding: 0;border: none;">
		
		<form action="{:U('Store/Store_classificationadd')}" method="post" class="form form-horizontal" role="form">
			<div class="panel-body" style="padding: 0;border: none;">
				
				<div class="tab-content" style="padding: 16px 12px 55px 12px;">
					<div class="row panel-body" >
						<php>if($_GET['id']){</php>
							<a href="{:U('Store/store_classification')}" class="btn btn-sm btn-default">分类管理</a>
							<a href="{:U('Store/store_classificationadd')}" class="btn btn-sm btn-default">添加分类</a>
							<a href="javascript:;" class="btn btn-sm btn-primary">编辑分类</a>
						<php>}else{</php>
							<a href="{:U('Store/store_classification')}" class="btn btn-sm btn-default">分类管理</a>
							<a href="{:U('Store/store_classificationadd')}" class="btn btn-sm btn-primary">添加分类</a>
						<php>}</php>
					
					</div>
					<section class="panel-default m-b-sm" style="margin:5px 0;">
						<div class="alert alert-info">
							<p>
			                  <i class="fa fa-hand-o-right m-r-xs"></i><strong>操作提示</strong>
			                </p>
		                    <p class="alert-p m-l-xl"><i class="fa fa-caret-right m-r-xs"></i>该页面可对分类进行添加编辑修改操作。</p>
		              	</div>
					</section>
					<div class="tab-pane fade active in" id="apply">
						<section class="panel panel-default">
							<header class="panel-heading font-bold"> 分类信息 </header>
							<div class="panel-body">
								<input type="hidden" name="id" id="id" value="{$current.id}" />
									<div class="form-group">
										<label class="col-sm-2 control-label">分类名称</label>
										<div class="col-md-3">
											<input type="text" class="form-control" name="classification" data="分类名称" datatype="required" value="{$current.classification}">
										</div>
									</div>
									<div class="line line-dashed line-lg pull-in"></div>
									<div class="form-group">
										<label class="col-sm-2 control-label">排序</label>
										<div class="col-md-3">
											<input type="text" class="form-control"  name="sort"  data="排序" datatype="required" value="{$current.sort|default='0'}">
										</div>
									</div>
							</div>
						</section>
						
						
					
						<div class="col-sm-4 col-sm-offset-2" style="margin-top: 10px;"> 
							<button class="formSubmit btn btn-primary btn-sm" id="form" value="保存" ajax="1" type="button">保存</button>
							
						</div>
					</div>
				</div>
			</div>

		</form>
	</div>
	

	
	<include file="Public:footer" />